{include file="public/header" /} {include file="public/headnav" /} {include file="public/nav" /} {include file="public/setting" /}
<!-- Content Wrapper. Contains page content -->
<!--<div class="content-wrapper">-->
<!--&lt;!&ndash; Main content &ndash;&gt;-->
<!--<iframe class="rightContent" name="rightContent" width="100%" height="100%" src="{:url('home/Index/main')}" frameborder="0"></iframe>-->
<!---->
<div class="content-wrapper" id="content-wrapper" style="min-height: 421px;">
    <!--bootstrap tab风格 多标签页-->
    <div class="content-tabs">
        <button class="roll-nav roll-left tabLeft" onclick="scrollTabLeft()">
            <i class="fa fa-backward"></i>
        </button>
        <nav class="page-tabs menuTabs tab-ui-menu" id="tab-menu">
            <div class="page-tabs-content" style="margin-left: 0px;">
            </div>
        </nav>
        <button class="roll-nav roll-right tabRight" onclick="scrollTabRight()">
            <i class="fa fa-forward" style="margin-left: 3px;"></i>
        </button>
        <div class="btn-group roll-nav roll-right">
            <button class="dropdown tabClose" data-toggle="dropdown">
                页签操作<i class="fa fa-caret-down" style="padding-left: 3px;"></i>
            </button>
            <ul class="dropdown-menu dropdown-menu-right" style="min-width: 128px;">
                <li><a class="tabReload" href="javascript:refreshTab();">刷新当前</a></li>
                <li><a class="tabCloseCurrent" href="javascript:closeCurrentTab();">关闭当前</a></li>
                <li><a class="tabCloseAll" href="javascript:closeOtherTabs(true);">全部关闭</a></li>
                <li><a class="tabCloseOther" href="javascript:closeOtherTabs();">除此之外全部关闭</a></li>
            </ul>
        </div>
        <button class="roll-nav roll-right fullscreen" onclick="App.handleFullScreen()"><i class="fa fa-arrows-alt"></i></button>
    </div>
    <div class="content-iframe " style="background-color: #ffffff; ">
        <div class="tab-content " id="tab-content">
        </div>
    </div>
</div>
<footer class="main-footer navbar-fixed-bottom">
    <div class="pull-right hidden-xs">
        <b>版本:</b> {:sys_config_get('inge_version')}
    </div>
    <strong>Copyright &copy; 2016-2017 <a href="http://www.3shinet.com" class="J_menuItem">{$site_copyright|default=''}</a>.</strong> 版权所有.
</footer>
{include file="public/base" /} {include file="public/footer" /}
<script src="/static/js/app_iframe.js"></script>
<script>
$(".rightContent").load(function() {
    var mainheight = $(this).contents().find(".content").height() + 110;
    if (mainheight < 150) {
        mainheight += 500;
    }
    $(this).height(mainheight);
    window.scrollTo(0, 0);
});
$(function() {
    //        console.log(window.location);
    App.setbasePath("");
    App.setGlobalImgPath("/static/img/");
    addTabs({
        id: '101',
        title: '首页',
        close: false,
        url: 'home/index/main.html'
    });
    App.fixIframeCotent();

    $('.treeview a').on('click', function() {
        var href = $(this).attr('href');
        var title = $(this).find('span').text();
        var data_id = $(this).data('id');
        if (href !== "" && href !== "javascript:;") {
            addTabs({
                id: data_id,
                title: title,
                close: false,
                url: href,
                urlType: "relative"
            });
            return false;
        }
    });
    /*addTabs({
     id: '10009',
     title: '404',
     close: true,
     url: 'UI/buttons_iframe2.html'
     });*/

    /*
     <li class="treeview">
     <a href="#">
     <i class="fa fa-edit"></i> <span>Forms</span>
     <span class="pull-right-container">
     <i class="fa fa-angle-left pull-right"></i>
     </span>
     </a>
     <ul class="treeview-menu">
     <li><a href="forms/general.html"><i class="fa fa-circle-o"></i> General Elements</a></li>
     <li><a href="forms/advanced.html"><i class="fa fa-circle-o"></i> Advanced Elements</a></li>
     <li><a href="forms/editors.html"><i class="fa fa-circle-o"></i> Editors</a></li>
     </ul>
     </li>
     */
    var menus = {$menus};
    $('.sidebar-menu').sidebarMenu({
        data: menus,
        param: {
            strUser: 'admin'
        }
    });

});
</script>
</body>

</html>